<#include "./template.ftl">

<#macro head>
    <title>公司详情-Morketing</title>
    <link rel="stylesheet" href="${base}/client/css/gongsiList.css">
</#macro>
<#macro content>
        <div id="contents">
         <div class="productList-main clearfix wrap">
             <#if company??>
            <div class="pl-left f-l">
                 <div class="pl-detail-infos gs-detail-infos">
                     <div class="pic f-l">
                         <img width="100%" src="${base}/system/getImg?imgId=${company.iconUrl}&w=164&h=164" alt="">
                     </div>
                     <div class="cell f-l">
                         <h2>${company.name}</h2>
                         <p>主营业务: <span>${company.majorBiz}</span></p>
                         <p>公司规模:<span>${company.scale}人以上</span></p>
                         <p>公司官网:<span>${company.website}</span></p>
                         
                     </div>
                 </div>

                 <div class="pl-detail-intro gs-detail-intro">
                     <h2 class="common-h2">公司简介</h2>
                     <div class="detail-p">
                        ${company.discription}
                     </div>

                     <h2 class="common-h2">主营业务</h2>
                     <div class="detail-p">${company.majorBiz}</div>

                     <h2 class="common-h2">公司高层</h2>
                     <div class="detail-p">
                     ${company.seniorManager}
                     </div>

                     <h2 class="common-h2">公司地址</h2>
                     <div class="detail-p">
                     ${company.address}
                     </div>

                     <h2 class="common-h2">联系人及电话</h2>
                     <div class="detail-p"><#if no_login??><input type="button" value="获取联系方式" onclick="getContact()"/> <#else> ${company.contact} </#if></div>

                     
                 </div>
            </div>
         </#if>

            <div class="pl-right f-r">
                 <div class="pl-slide-intro gs-slide-intro">
                    <h2 class="slide-h2">热门公司</h2>
                     <#if companys??>
                    <ul>
                        <#list companys as c>
                         <li>
                             <div class="pic f-l">
                                 <img width="100%" src="${base}/system/getImg?imgId=${c.iconUrl}&w=80" alt="">
                             </div>
                             <div class="cell f-l">
                                 <a href="${base}/company/id/${c.id}"><h2>${c.name}</h2></a>
                                 <p>主营业务:<span>${c.majorBiz}</span></p>
                                 <p>领域:<span>${c.zone}</span></p>
                                 <p>地区:<span>${c.area}</span></p>
                             </div>
                         </li>
                        </#list>
                    </ul>
                     </#if>
                 </div>
            </div>
         </div>
    </div>
</#macro>
<#macro js>
<script type="text/javascript">
    function getContact(){
        alert("您还没有登录，请登录！");
        location.replace("${base}/login?redirect_url=" + window.location.href);
    }




</script>
</#macro>
